package com.wcy.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wcy.entity.Menu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @since 2021-04-30
 */
@Repository
public interface MenuMapper extends BaseMapper<Menu> {
    List<Menu> getTree(Integer mid);

    List<Menu> findMenusByUid(@Param("uid") Integer uid, @Param("parentId") Integer parentId);

        List<Menu> getMenuList(String name);

    int addMenu(Menu menu);

    Menu getMenu(int id);

    int updateMenu(Menu menu);
}
